//
//  User.m
//  OC-微博
//
//  Created by Apple on 15/11/13.
//  Copyright © 2015年 Apple. All rights reserved.
//

#import "User.h"

@implementation User
+ (instancetype)initWithdict:(NSDictionary *)dict {
   User *u = [self new];
    [u setValuesForKeysWithDictionary:dict];
    
    return u;
}
- (void)setValue:(id)value forUndefinedKey:(NSString *)key{}
//描述对象的信息
- (NSString *)description
{
    NSArray *keys = @[@"id", @"screen_name", @"profile_image_url", @"verified_type", @"mbrank"];
    
    return [self dictionaryWithValuesForKeys:keys].description;
}

@end
